package com.swt.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.swt.dao.IUsersDao;
import com.swt.entity.Users;

@Service
public class UsersServiceImpl implements UsersService {
	
	@Autowired
	IUsersDao usersDao;

	public Users doLogin(Users users) {
		return usersDao.doLogin(users);
	}
    @Transactional
	public Integer insertUsers(Users users) {
		// TODO Auto-generated method stub
		return usersDao.insertUsers(users);
	}
 
}
